package com.tyk.bookstore.back.task.model.enume;

import com.fasterxml.jackson.annotation.JsonValue;
import com.tyk.bookstore.back.common.core.model.type.BaseEnum;

/**
 * @author tyk
 * @description TaskState
 */
public enum TaskState implements BaseEnum {

    CLOSE(0),OPEN(1);

    @JsonValue
    private final Integer code;

    TaskState(Integer code) {
        this.code = code;
    }

    @Override
    public Integer value() {
        return this.code;
    }

}
